package threadTest;

public class CousemerThread extends Thread{
    Pruduct pruduct =null;

    public CousemerThread(Pruduct p ){
        this.pruduct = p;
    }

    @Override
    public void run() {
        super.run();
        while (true){
            try {
                pruduct.del();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
